{extend name="public/layout"/}
{block name="title"}{$currentInfo.name}_{:web_config('web_title')}{/block}
{block name="head"}
<style>
</style>
{/block}
{block name="body"}
{include file="public/index_header" /}
<div class="page-content">
  <div class="inside-page">
    {include file="public/left_menu"/}
    <div class="content-box">
      {include file="public/index_location"/}
     <!-- <div class="top-news">
        <ul class="mc-avg-sm-3 mc-avg-between-lg img-news-list">
          <li>
            <a href="/home/index/page.html?tpl=news_content" class="news-item">
              <div class="news-thumb" style="background-image:url(/static/home/img/case01.jpg)"></div>
              <div class="news-title">全屋智能难解刚需,人类被困在伪智能的象牙塔里</div>
            </a>
          </li>
          <li>
            <a href="/home/index/page.html?tpl=news_content" class="news-item">
              <div class="news-thumb" style="background-image:url(/static/home/img/case02.jpg)"></div>
              <div class="news-title">全屋智能难解刚需,人类被困在伪智能的象牙塔里</div>
            </a>
          </li>
          <li>
            <a href="/home/index/page.html?tpl=news_content" class="news-item">
              <div class="news-thumb" style="background-image:url(/static/home/img/case03.jpg)"></div>
              <div class="news-title">全屋智能难解刚需,人类被困在伪智能的象牙塔里</div>
            </a>
          </li>
        </ul>
      </div>-->
      <div class="news-page-list" id="list-box"></div>
      <div id="page"></div>
    </div>
  </div>
</div>
{include file="public/index_footer" /}
{/block}
{block name="script"}
<script type="text/html" id="list-tpl">
  {@each rows as value}
  <a href="/home/cms/info.html?id=${value.id}&class_id=${value.class_id}" class="news-item  {@if value.thumb==''}no-thumb{@/if}">
    {@if value.thumb!=''}
    <div class="mc-thumb-square" style="background-image:url(${value.thumb})"></div>
    {@/if}
    <div class="news-info">
      <h2 class="news-tit font-size18 line-height24 one-cut">${value.title}</h2>
      <div class="height-10"></div>
      <div class="news-desc font-size14 line-height24 two-cut text-justify">${value.description}</div>
      <div class="news-date font-size12 font-gray line-height24">${value.create_time}</div>
    </div>
  </a>
  {@/each}
</script>
<script>
  var class_id = "{$Request.param.class_id}";
  helper.pagination({
    dataSource: 'getPagelist.html', //默认取rows和total
    params:{class_id:class_id},
    /* header:function(currentPage,totalPage,totalNumber){
         $('#total-num').text(totalNumber);
         $('#pagebox').html('<span class="page-num">'+currentPage+'</span>/'+totalPage);
     },*/
    callback: function(data, pagination) {
      console.info(data);
      var html=juicer($('#list-tpl').html(),{rows:data});
      $('#list-box').html(html);
    }
  })
</script>
{/block}